package com.student.db;


import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;

import java.util.List;

import io.reactivex.rxjava3.core.Completable;
import io.reactivex.rxjava3.core.Flowable;

@Dao
public interface ScoreDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    public Completable insert(ScoreEntity scoreEntity);




    @Query("SELECT * FROM db_score  ORDER BY scoreTime DESC")
    public Flowable<List<ScoreEntity>> getScores();
}
